package com.zzl.bonds.ticket.dto.myticket;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.zzl.apidoc.annotation.ApidocModel;
import com.zzl.apidoc.annotation.ApidocModelProperty;
import com.zzl.bonds.ticket.dto.KeyValue;
import com.zzl.general.common.utils.DoubleSerialize;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @author : spp
 * @date : 2022/2/25 10:54
 */
@Data
@ApidocModel
public class MyTicketInvalidPage {

    @ApidocModelProperty(description = "主键")
    private String id;

    @ApidocModelProperty(description = "票据编号")
    private String ticketNo;

    @JsonSerialize(using = DoubleSerialize.class)
    @ApidocModelProperty(description = "票据原始金额/凭证金额")
    private Double ticketAllAmount;

    @ApidocModelProperty(description = "开单方id")
    private Integer openEnterpriseId;
    @ApidocModelProperty(description = "开单方企业名称")
    private String openEnterpriseName;

    @ApidocModelProperty(description = "转让方id")
    private Integer transferEnterpriseId;
    @ApidocModelProperty(description = "开单或者转让方id")
    private String transferEnterpriseName;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApidocModelProperty(description = "开单日期", validate = "yyyy-MM-dd")
    private Date invoiceTime;
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApidocModelProperty(description = "兑付日期", validate = "yyyy-MM-dd")
    private Date cashTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApidocModelProperty(description = "到期日期", validate = "yyyy-MM-dd HH:mm:ss")
    private Date expireTime;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApidocModelProperty(description = "签收日期", validate = "yyyy-MM-dd")
    private Date receiptTime;
    /**
     * 查转让表
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApidocModelProperty(description = "转单日期", validate = "yyyy-MM-dd")
    private Date transferTime;

    @ApidocModelProperty(description = "金融机构Id")
    private Integer instinctyId;
    @ApidocModelProperty(description = "金融机构名称")
    private String instinctyName;

    @ApidocModelProperty(description = "票据来源,1:自建")
    private Integer ticketSource;

    @ApidocModelProperty(description = "上链地址")
    private String chainAddress;

    @ApidocModelProperty(description = "失效原因")
    private String invalidReason;

    @JsonIgnore
    private Integer ticketStatus;

    private String parentBusinessId;

    @ApidocModelProperty(description = "操作按钮集合")
    private List<KeyValue> operateButton;
}
